package com.bolt.auth.admin.api.sys.entity;

import com.bolt.support.spring.jpa.entity.PersistableEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Auto Generate Javadoc
 */
@Entity
@Table(name = "SYS_SERIALNUMBER_CONFIG")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SerialnumberConfig extends PersistableEntity<Integer> {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "ID", length = 3)
    private Integer id;

    @Column(name = "SERIALEXPRESSION", length = 32)
    private String serialexpression;

    @Column(name = "SERIALNUM", length = 3)
    private Integer serialnum;

    @Column(name = "SERIALLENGHT", length = 6)
    private Integer step;

    @Column(name = "CURRNUM", length = 8)
    private Long currnum;

    @Column(name = "description")
    private String description;

    @Override
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSerialexpression() {
        return serialexpression;
    }

    public void setSerialexpression(String serialexpression) {
        this.serialexpression = serialexpression;
    }

    public Integer getSerialnum() {
        return serialnum;
    }

    public void setSerialnum(Integer serialnum) {
        this.serialnum = serialnum;
    }

    public Integer getStep() {
        return step;
    }

    public void setStep(Integer step) {
        this.step = step;
    }


    public Long getCurrnum() {
        return currnum;
    }

    public void setCurrnum(Long currnum) {
        this.currnum = currnum;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}